//
//  ListenBookViewCell.m
//  彩虹儿歌
//
//  Created by SXS on 15/7/3.
//  Copyright (c) 2015年 HelloBaby. All rights reserved.
//

#import "ListenBookViewCell.h"

@implementation ListenBookViewCell

- (void)dealloc
{
    self.imageV = nil;
    self.nameLabel = nil;
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    CGFloat imageWth = frame.size.width - 6;
    CGFloat imageHt = imageWth * 140 / 188;
    self = [super initWithFrame:frame];
    if (self) {
        self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(3, 3, imageWth, imageHt)];
        self.imageV.backgroundColor = [UIColor blueColor];
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(3, 15 + imageHt, imageWth, 30)];
        self.nameLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.imageV];
        [self.contentView addSubview:self.nameLabel];
        [self.imageV release];
        [self.nameLabel release];
    }
    return self;
}


@end
